<%@page import="java.util.ArrayList"%>
<%@page import="data.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="manager" scope="session" class="manager.Manager" /> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="Content-Language" content="fr" />
	<meta name="ROBOTS" content="index,follow" />
	<link type='text/css' href='http://localhost:8080/cabinet_medical/css/design.css' rel='stylesheet' />
	<title>${pageConfig.titre}</title>
</head>
<body>
<!-- Banniere haute -->
<div id="banniere_haut">
<%
/***********************************************************************
* Analyse si le médecin est connecté
* si Oui on lui affiche un icon pour se déconnecter et des informations
************************************************************************/
if(manager.isConnected()){
%>
	<table style="width:100%">
		<tr>
			<td style="text-align:right;padding-right:20px;padding-top:10px;"><a href="../deconnexion/deconnexion.jsp"><img src="../images/design/espace_perso_deconnexion.png" style="width:35px;"/></a></td>
		</tr>
<%
		Medecin medecin=manager.getServeurRmi().getMedecin(manager.getIdMedecin()) ;
%>
		<tr>
			<td style="text-align:right;padding-right:20px;padding-top:10px;font-size:14px;font-weight:bold;color:white;"><%= medecin.getId_medecin() %> | <%= medecin.getNom_medecin() %> <%= medecin.getPrenom_medecin() %></td>
		</tr>
	</table>
<%
}
%>
</div>
<!-- Container de la page -->
<div id="container">
<!-- Inclusion du menu -->
<%@ include file="../commun_page_swmenufree/swmenufree.jsp" %>
<!-- Affichage de la navigation pour faciliter la navigation du client -->
<div id="navigation">
	<p>${pageConfig.navigation}</p>
</div>
<!-- Contenu de la page -->
<div id="contenu">
<%
	ArrayList<String> messages = manager.extraireMessages();
	if(messages.size() > 0){
%>
		<div id="contenu_style1_haut">
		</div>
		<div id="contenu_style1_centre">
			<table>
				<tr>
					<td style="text-align:center;">
<%
						out.println("<ul style='color:white;font-size:12px;font-weight:bold;margin:0;list-style-type: none;'>");
						for(String mess : messages){
							out.println("<li>"+mess+"</li>");
						}
						out.println("</ul>");
%>
					</td>
				</tr>
			</table>
		</div>
		<div id="contenu_style1_bas">
		</div>
<%
	}
%>
	<h1>${pageConfig.titre}</h1>
	<jsp:include page="${pageConfig.contenu}" />
	<hr />
</div>
<hr />
</div>
<!-- Banniere bas -->
<div id="banniere_bas">
</div>
</body>
</html>